package com.contractpage;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.common.seq.sql.SqlSeqUtil;

public class ContractpageProvider {
	public static void main(String[] args){
		 ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
				 "classpath:spring/applicationContext.xml");
		context.start();
		SqlSeqUtil.initSqlSeq((com.alibaba.druid.pool.DruidDataSource)context.getBean("dataSource"));
		System.out.println("-------------纸质合同dubbo服务启动成功---------------");
		synchronized (ContractpageProvider.class) {
			while (true) {
				try {
					ContractpageProvider.class.wait();
				} catch (Throwable e) {
				}
			}
		}
	}
}
